package com.kedou.sdk.params;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by Administrator on 2017/6/8 0008.
 */

public class ModifyPasswordReuqestParams extends BaseRequestParams implements Parcelable{

    private static final String SERVICE = "passwordReset";

    private String username;
    private String token;
    private String new_password;

    public ModifyPasswordReuqestParams(String username, String password) {
        this.username = username;
        this.new_password = password;
    }



    @Override
    public String getServiceString() {
        return SERVICE;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public String getNew_password() {
        return new_password;
    }

    public void setNew_password(String new_password) {
        this.new_password = new_password;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        super.writeToParcel(dest, flags);
        dest.writeString(this.username);
        dest.writeString(this.new_password);
        dest.writeString(this.token);
    }

    protected ModifyPasswordReuqestParams(Parcel in) {
        super(in);
        this.username = in.readString();
        this.new_password = in.readString();
        this.token = in.readString();
    }

    public static final Creator<ModifyPasswordReuqestParams> CREATOR = new Creator<ModifyPasswordReuqestParams>() {
        @Override
        public ModifyPasswordReuqestParams createFromParcel(Parcel source) {
            return new ModifyPasswordReuqestParams(source);
        }

        @Override
        public ModifyPasswordReuqestParams[] newArray(int size) {
            return new ModifyPasswordReuqestParams[size];
        }
    };
}
